;;; set-misc-plugins.el - settings for misc plugings.
;;;  
;;; Copyright (C) 2011 Jeffy Du
;;;  
;;; Author: Jeffy Du (cmdxiaoha@163.com)
;;; Create: 2011-12-23 23:42:53
;;; Last Modified: 2011-12-23 23:43:06
;;;  
;;; History:
;;; --------
;;; 2011-12-23  v0.1  Jeffy Du (cmdxiaoha@163.com)
;;;     1. Initial revision.

;; settings for autopair.el
(require 'autopair)
(autopair-global-mode t)

;; settings for highlight-parentheses.el
(require 'highlight-parentheses)
(add-hook 'find-file-hooks (lambda () (highlight-parentheses-mode)))
(add-hook 'highlight-parentheses-mode-hook
          '(lambda ()
             (setq autopair-handle-action-fns
                   (append
                    (if autopair-handle-action-fns
                        autopair-handle-action-fns
                      '(autopair-default-handle-action))
                    '((lambda (action pair pos-before)
                        (hl-paren-color-update)))))))

;; settings for bar-cursor.el
(require 'bar-cursor)
(bar-cursor-mode t)

;; settings for highlight-symbol.el
(require 'highlight-symbol)
(global-set-key (kbd "<f12>") 'highlight-symbol-at-point)
(global-set-key (kbd "S-<f12>") 'highlight-symbol-remove-all)
(global-set-key (kbd "C-<f12>") 'highlight-symbol-next)
(global-set-key (kbd "M-<f12>") 'highlight-symbol-prev)
